package com.shang

/**
  * Created by shangyanshuo048 on 2017/6/21.
  */
object ForDemo {
  def main(args: Array[String]): Unit ={
    var a = 0
//    for(a <- 1 until 10){
//      println("Value of a :" + a)
//    }

    for { a ← 1 until 2}{
      println("Value of a :" + a)
    }

    for (i <- 1 to 5) yield i


  }

}
